package com.hqj.demo.service;

import com.hqj.demo.dao.TeacherDao;
import com.hqj.demo.entity.Teacher;

import java.util.List;

public class TeacherServiceI implements TeacherService {

    private TeacherDao td;
    public void setTd(TeacherDao td) {
        this.td = td;
    }

    @Override
    public List<Teacher> findTea() {
        return td.find();
    }
}
